package com.yztc.love_travel.retrofitinterface;

import com.yztc.love_travel.bean.HistoryBean;
import com.yztc.love_travel.bean.PlayinLocalBean;
import com.yztc.love_travel.bean.SceneryStrategyBean;
import com.yztc.love_travel.bean.fourtrip.FourTripDetailsBean;
import com.yztc.love_travel.bean.homepage.RecommendTripNotesBean;
import com.yztc.love_travel.bean.fourtrip.FourTripBean;
import com.yztc.love_travel.constant.URLConstant;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by 周旭 on 2016/11/28.
 */

public interface RetrofitInterface {

    //获取"四大推荐旅行"的bean的数据
    @GET(URLConstant.ReligionCulture.URL_REGION_PATH)
    Observable<FourTripBean> gerFourTripBean(@QueryMap Map<String,Object> params);


    //获取推荐游记列表的数据
    @GET(URLConstant.RecommendNotes.URL_RECOMMEND_PATH)
    Observable<RecommendTripNotesBean> getRecommendTripNotesBean(@QueryMap Map<String,Object> params);

    //获取"四大推荐旅行"的列表的Item的详情数据
    @GET(URLConstant.FourTripDetails.URL_FOUR_TRIP_DETAILS_PATH)
    Observable<FourTripDetailsBean> getFourTripDetails(@Query(URLConstant.FourTripDetails.DESTINATIONID) int destinationId);

    //获取历史文化的bean的数据
    @GET(URLConstant.HistoryCulture.URL_HISTORY_PATH)
    Observable<HistoryBean> getHistoryCultureBean(@QueryMap Map<String, Object> params);

    //获取景点攻略的bean的数据
    @GET(URLConstant.SceneryStrategy.URL_SCENERYATRATEGY_PATH)
    Observable<SceneryStrategyBean> getSceneryStrategyBean(@QueryMap Map<String, Object> params);

    //获取玩当地的bean的数据
    @GET(URLConstant.PlayinLocal.URL_PLAYINLOCAL_PATH)
    Observable<PlayinLocalBean> getPlayinLocalBean(@QueryMap Map<String, Object> params);
}
